.page-manage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    .manage-box-menu {
        position: relative;
        flex-grow: 0;
        flex-shrink: 0;
        width: 255px;
        height: 100%;
        background: #F4F5F7;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: all 0.2s;
        > ul {
            flex: 1;
            width: 100%;
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden !important;
            > li {
                flex-shrink: 0;
                display: flex;
                align-items: center;
                height: 36px;
                color: #6b6e72;
                cursor: pointer;
                position: relative;
                width: 80%;
                max-width: 100%;
                margin: 5px auto;
                padding: 0 4%;
                border-radius: 4px;
                > i {
                    opacity: 0.3;
                    font-size: 20px;
                    margin-right: 10px;
                }
                .menu-title {
                    flex: 1;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                .menu-badge {
                    margin-left: 12px;
                    transform: scale(0.9);
                }
                &:first-child {
                    margin-top: 12px;
                }
                &.active {
                    background-color: #ffffff;
                }
                &.menu-project {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    padding: 12px 0 0;
                    cursor: default;
                    width: 100%;
                    > ul {
                        width: 100%;
                        overflow: auto;
                        > li {
                            display: flex;
                            flex-direction: column;
                            list-style: none;
                            cursor: pointer;
                            width: 80%;
                            margin: 2px auto;
                            border: 2px solid transparent;
                            .project-h1 {
                                position: relative;
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                padding: 0 8px 0 28px;
                                border-radius: 4px;
                                > em {
                                    position: absolute;
                                    top: 50%;
                                    left: 2px;
                                    width: 24px;
                                    height: 24px;
                                    cursor: pointer;
                                    transform: translateY(-50%);
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                    &:before {
                                        content: "";
                                        width: 12px;
                                        height: 12px;
                                        background: url("") no-repeat center center;
                                        background-size: contain;
                                        transition: transform 0.2s;
                                    }
                                }
                                .title {
                                    flex: 1;
                                    color: #333333;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    white-space: nowrap;
                                    height: 38px;
                                    line-height: 38px;
                                }
                                .icon-top {
                                    padding-left: 8px;
                                    width: 14px;
                                    height: 14px;
                                    background: url("") no-repeat center center;
                                    background-size: contain;
                                }
                                .num {
                                    padding-left: 8px;
                                    font-size: 12px;
                                }
                            }
                            .project-h2 {
                                display: none;
                                margin: 16px 4px;
                                padding: 0 8px 0 24px;
                                cursor: default;
                                > p {
                                    display: flex;
                                    align-items: center;
                                    padding: 4px 0;
                                    height: 36px;
                                    em,
                                    span {
                                        font-style: normal;
                                        font-size: 12px;
                                        flex-shrink: 0;
                                        padding-right: 6px;
                                    }
                                    .ivu-progress {
                                        margin-right: -18px;
                                        .ivu-progress-inner {
                                            background-color: #e4e4e4;
                                        }
                                    }
                                }
                            }
                            &.top {
                                .project-h1 {
                                    background-color: #EEEFF1;
                                }
                            }
                            &.active {
                                .project-h1 {
                                    background-color: #ffffff;
                                }
                            }
                            &.open-menu {
                                .project-h1 {
                                    > em {
                                        &:before {
                                            transform: rotate(90deg);
                                        }
                                    }
                                }
                                .project-h2 {
                                    display: block;
                                }
                            }
                            &.operate {
                                border-color: $primary-color;
                            }
                        }
                    }
                    .common-loading {
                        margin: 6px;
                        width: 22px;
                        height: 22px;
                    }
                    .top-operate {
                        position: absolute;
                        top: 0;
                        right: 0;
                        opacity: 0;
                        display: flex;
                    }
                }
            }
        }
        .manage-project-search {
            width: 80%;
            padding: 0 3px;
            margin: 8px 0 -2px;
            border-radius: 12px;
            background-color: #ffffff;
            overflow: hidden;
            .ivu-input {
                padding-left: 30px;
                border-color: transparent;
                background-color: transparent;
                &:hover,
                &:focus {
                    box-shadow: none;
                }
            }
            &.loading {
                .ivu-icon-ios-search {
                    animation: icon-loading-load 0.6s infinite linear;
                    &:before {
                        content: "\F45B";
                    }
                }
            }
        }
        .manage-box-new-group {
            width: 80%;
            margin-top: 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            .manage-box-new {
                flex: 1;
            }
            .ivu-btn {
                height: 38px;
            }
            .ivu-dropdown {
                .ivu-btn {
                    min-width: auto !important;
                    padding: 0 4px;
                    border-radius: 0 4px 4px 0;
                }
            }
        }
    }
    .manage-box-main {
        flex: 1;
        position: relative;
        .manage-box-view {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: auto;
        }
    }
    .manage-mini-menu {
        display: none;
        position: relative;
        .ivu-badge {
            position: absolute;
            top: -6px;
            left: 30px;
            transform: scale(0.9);
        }
    }
}

.page-manage-menu-dropdown {
    flex-shrink: 0;
    width: 86%;
    .ivu-select-dropdown {
        padding: 7px 0;
        .ivu-dropdown-item {
            padding: 9px 16px;
        }
        .ivu-dropdown-item-divided {
            margin-top: 7px;
            &:before {
                top: -9px;
            }
        }
    }
    .manage-box-title {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        padding: 6px 10px;
        margin-top: 27px;
        border-radius: 8px;
        background-color: #ffffff;
        cursor: pointer;
        transition: box-shadow 0.3s;
        &.menu-visible {
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
        }
        .manage-box-avatar {
            width: 36px;
            height: 36px;
        }
        > span {
            flex: 1;
            padding-left: 12px;
            font-size: 16px;
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .manage-box-arrow {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-left: 16px;
            padding-right: 2px;
            > i {
                font-size: 12px;
                margin: -1px;
            }
        }
        .manage-box-top-report {
            overflow: unset;
            margin-right: -6px;
            align-items: center;
            flex-direction: column;
            justify-content: center;
            flex: 0 0 auto;
            > i {
                font-size: 12px;
                margin: -1px;
            }
        }
    }
    .manage-menu-report-badge {
        margin-left: 6px;
        transform: scale(0.9);
        vertical-align: top;
    }
    .manage-menu-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .ivu-icon {
            color: #666666;
        }
    }

    .task-title {
        max-width: 600px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.page-manage-task-modal {
    display: flex;
    flex-direction: column;
}

.page-manage-add-task-button-group {
    margin-left: 8px !important;
    .ivu-dropdown {
        .ivu-btn {
            min-width: auto !important;
            padding: 0 4px;
            border-radius: 0 4px 4px 0;
        }
    }
}

@media (max-height: 640px) {
    .page-manage {
        .manage-box-menu {
            > ul {
                overflow: auto !important;
                &.overlay-y {
                    overflow-y: overlay !important;
                }
                > li {
                    &.menu-project {
                        > ul {
                            overflow: visible !important;
                        }
                    }
                }
            }
            .manage-project-search {
                margin-top: 12px;
            }
        }
    }
}

@media (max-width: 768px) {
    .page-manage {
        .manage-box-menu {
            position: fixed;
            z-index: 49;
            left: 0;
            top: 0;
            bottom: 0;
            width: 100%;
            transform: translateX(-120%);
            &.show768-menu {
                transform: translateX(0);
            }
        }
        .manage-mini-menu {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 42px;
            font-size: 22px;
            background-color: #ffffff;
            white-space: nowrap;
            border-radius: 4px;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
            cursor: pointer;
        }
    }
}
